<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>dom和jquery对象的互转</title>
		<script type="text/javascript" src="../js/jquery-3.3.1.min.js" ></script>
		<script>
			$(function(){
				alert("zhunbei 隐藏p");
				var p1=$("p")[0];
				p1.style.display="none";
			});
			function changeDiv(){
				var d=document.getElementById("d1");
				$(d).html("<a href='https://www.taobao.com' target='_blank'>taobao</a>");
			}
		</script>
	</head>
	<body>
		<p>
			nihao1
		</p>
		<div id="d1"></div>
		<input type="button" value="change div" onclick="changeDiv()">
	</body>
</html>
